 function Person() {

 	var values = new Array();

 	values.push.apply(values, arguments);
 	values.toPopedString = function () {
 		return this.join('|')
 	}
 	return values;
 }

 var colors = new Person('red', 'blue', 'green');
 console.log(colors.toPopedString());